home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Franz PD / Franz PD Disk #279 (1993)(Rhein-Sieg-Soft).zip / Franz PD Disk #279 (1993)(Rhein-Sieg-Soft).adf / ak_gen0-lib_V38.20.LHA / ak_gen0-library / Programmers.LHA / Programmers / Headers / ak_gen0_obsolete.h < prev    next >
C/C++ Source or Header  |  1993-10-17  |  7KB  |  177 lines

  1. /* ************************************************************************ */
  2. /* AK_GEN0_OBSOLETE_H (obsolete definitions of "ak_gen0.h")                 */
  3. /* ************************************************************************ */
  4. /* (c) 1989-93 by Andreas Ralph Kleinert. All rights reserved.              */
  5. /* COMMERCIAL USE IS NOT ALLOWED WITHOUT SPECIAL PERMISSION BY THE AUTHOR ! */
  6. /* ************************************************************************ */
  7. /* Version        : V38.20                            */
  8. /* Last updated     : 17.10.1993                        */
  9. /* Compiler        : SAS/C V6.3                        */
  10. /* Compiler-Options : (smakefile)                                           */
  11. /* ************************************************************************ */
  12. /* Address        : Andreas R. Kleinert                    */
  13. /*              Grube Hohe Grethe 23                    */
  14. /*              D-57074 Siegen                        */
  15. /*              Germany                            */
  16. /* ************************************************************************ */
  17.  
  18. /* NOTE : Always make use of #pragmas, if possible and NEVER use stubs
  19.       for "ak_gen0.library", when using ANY kind of #pragmas under
  20.       SAS/C V6.00+
  21. */
  22.  
  23. #ifndef AK_GEN0_AK_GEN0_OBSOLETE_H
  24. #define AK_GEN0_AK_GEN0_OBSOLETE_H
  25.  
  26. /* NOTE : You should not use the following things in new code,
  27.       because they may become FULLY obsolete in future versions.
  28. */
  29.  
  30.  
  31. /* *************************************************** */
  32. /* *                                                 * */
  33. /* * OBSOLETE Defines                                * */
  34. /* *                                                 * */
  35. /* *************************************************** */
  36.  
  37. #define FIRST_SCREEN   ( (struct Screen *) IntuitionBase->FirstScreen )
  38.  
  39. #define CURRENT_WINDOW ( (struct Window *) IntuitionBase->ActiveWindow )
  40. #define CURRENT_SCREEN ( (struct Screen *) IntuitionBase->ActiveScreen )
  41. #define CURRENT_MOUSEX ( CURRENT_WINDOW->MouseX )
  42. #define CURRENT_MOUSEY ( CURRENT_WINDOW->MouseY )
  43.  
  44.  
  45. /* Defines for "direntry[]" of AK_ReadDir() */
  46.  
  47. #define AKF_IS_FILE (FALSE) /* OBSOLETE :                                */
  48. #define AKF_IS_DIR  (TRUE)  /* Use new function AK_GetDirList() instead. */
  49. #define AKF_IS_VOL  (1<<2)  /* (Still PRIVATE flag.)                     */
  50.  
  51. #define AK_MAX_DOS_FILENAME_LEN (108)
  52. #define AK_MAX_READDIR_ENTRIES    (50)  /* No more than 50 entries will be   */
  53.                       /* read (for compatibility reasons). */
  54.                       /* So use "AK_GetDirList()" and      */
  55.                       /* "AK_FreeDirList()" instead !      */
  56.  /* NOTE :
  57.  
  58.    AK_ReadDir() is OBSOLETE since V36/V37. It still works, but only is
  59.    integrated because of compatibility reasons.
  60.    Use AK_GetDirList() instead.
  61.  
  62.  */
  63.  
  64.  
  65. /* *************************************************** */
  66. /* *                                                 * */
  67. /* * OBSOLETE Base Definitions                       * */
  68. /* *                                                 * */
  69. /* *************************************************** */
  70.  
  71. #ifndef AKG_NOBASES
  72.  
  73. struct LayersBase *LayersBase = N; /* perhaps you'll NEVER use it. */
  74.  
  75. #endif /* AKG_NOBASES */
  76.  
  77.  
  78. /* *************************************************** */
  79. /* *                                                 * */
  80. /* * OBSOLETE MACROs                                 * */
  81. /* *                                                 * */
  82. /* *************************************************** */
  83.  
  84. #define SIZE_PAL(window)  (WindowLimits(window, 0, 0, 640, 256))
  85. #define SIZE_NTSC(window) (WindowLimits(window, 0, 0, 640, 200))
  86.  
  87. #define SET_MAX (SIZE_PAL(CURRENT_WINDOW)) /* OBSOLETE */
  88.  
  89. #define MEN xMEN(im)              /* OBSOLETE.                             */
  90. #define ITN xITN(im)              /* NOTE : Use xMEN,xITN,xSTN instead !!! */
  91. #define STN xSTN(im)
  92.  
  93. #define MEN_2 xMEN(im2)           /* OBSOLETE.                             */
  94. #define ITN_2 xITN(im2)           /* NOTE : Use xMEN,xITN,xSTN instead !!! */
  95. #define STN_2 xSTN(im2)
  96.  
  97. #ifndef AKG_NOVARS
  98.  
  99.  
  100. /* *************************************************** */
  101. /* *                                                 * */
  102. /* * OBSOLETE Variable Definitions                   * */
  103. /* *                                                 * */
  104. /* *************************************************** */
  105.  
  106. struct IntuiMessage *im   = N; /* First Window    */
  107. struct Window        *w      = N;
  108.  
  109. struct IntuiMessage *im_2 = N; /* Second Window */
  110. struct Window        *w_2  = N;
  111.  
  112. #endif /* AKG_NOVARS */
  113.  
  114.  
  115. /* *************************************************** */
  116. /* *                                                 * */
  117. /* * OBSOLETE Structure Definitions                  * */
  118. /* *                                                 * */
  119. /* *************************************************** */
  120.  
  121. struct AK_Requester /* structure for use with ak_gen0-requesters upto V38.20 */
  122. {
  123.  APTR  akr_APTR;       /* RESERVED. ONLY FOR PRIVATE USE.            */
  124.  
  125.  ULONG akr_Type;       /* Which type ? See flags below. DO NOT CHANGE !!!   */
  126.  
  127.  ULONG akr_Flags;      /* PRIVATE. (up to now)                              */
  128.  ULONG akr_Reserved1;  /* PRIVATE. (up to now)                              */
  129.  
  130.  /* ENTRIES TO BE MODIFIED BY THE USER (BEGIN) */
  131.  
  132.  APTR  akr_Window;     /* Pointer to User-Window or NULL (CURRENT_WINDOW).  */
  133.  
  134.  LONG  akr_LeftEdge;   /* Distance to the left border of your Screen.        */
  135.  LONG  akr_TopEdge;    /* Distance to the top border of your Screen.        */
  136.  
  137.  BYTE *akr_Title;      /* Pointer to title text for Window.  May be NULL.   */
  138.  BYTE *akr_OKText;     /* Pointer to text for OK-Gadget.     May be NULL.   */
  139.  BYTE *akr_CancelText; /* Pointer to text for Cancel-Gadget. May be NULL.   */
  140.  
  141.  LONG  akr_FGColor;    /* Foreground color (window). Default is -1.         */
  142.  LONG  akr_BGColor;    /* Background color (window). Default is -1.         */
  143.                /* With ak_gen0-Requester only used for OK/Cancel    */
  144.                /* gadgets.                        */
  145.  
  146.  ULONG akr_Default1;   /* These are values, which have different meanings   */
  147.  ULONG akr_Default2;   /* for different requester types. OPTIONAL.        */
  148.  ULONG akr_Default3;   /* See explanations below. Default is always NULL.   */
  149.  
  150.  /* ENTRIES TO BE MODIFIED BY THE USER (END) */
  151.  
  152.  APTR  akr_Tags;       /* RESERVED for future expansions. Always NULL.        */
  153.  
  154.  /* ======================================================================= */
  155.  /* SIZE MAY GROW IN FUTURE VERSIONS. ONLY ALLOC WITH AK_AllocRequester() ! */
  156.  /* FREE WITH AK_FreeRequester().                                           */
  157.  /* ======================================================================= */
  158. };
  159.  
  160. /* Meaning of the akr_Default fields :
  161.  
  162.    - FileRequester (AK_REQTYPE_FILE) :
  163.  
  164.      - akr_Default1  : May contain the name of a Default-Directory or NULL.
  165.      - akr_Default2  : May contain the name of a Default-File       or NULL.
  166.      - akr_Default3  : Not supported yet (set to NULL).
  167.  
  168.    - ModeRequester (AK_REQTYPE_MODE) :
  169.  
  170.      - akr_Default1  : Not supported yet (set to NULL).
  171.      - akr_Default2  : Not supported yet (set to NULL).
  172.      - akr_Default3  : Not supported yet (set to NULL).
  173.  
  174. */
  175.  
  176. #endif /* AK_GEN0_AK_GEN0_OBSOLETE_H */
  177.